<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var height=+prompt("请输入你的身高(cm)")
     var weight=+prompt("请输入你的体重(斤)")
     var tz=(height-108)*2;
     if(weight-tz>=-10 &&weight-tz<=10){
        document.write("体重合格");
     }else{
        document.write("体重不合格");
     }
</script>